package org.example.pojo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Artifact {
    private Integer artifactId;
    private String name;
    private String description;
    private String category;
    // 'pending', 'approved', 'rejected','available', 'displayed', 'loaned'
    // 待审核、已通过、已拒绝  、可用、已展示、借出
    private String status;
    private String location;
    // 使用 java.util.Date
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date creationDate;
    // 使用 java.util.Date
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date lastMaintenance;
    // 使用 java.util.Date
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date nextMaintenance;
    private String imageUrl;
}
